package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter
@Setter
@JsonIgnoreProperties("handler")
public class PrivateMessage {
    private Long id;//id

    private Integer sendId;//发送者id

    private Integer receiverId;//接收者id

    private String message;//发送内容
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date sendtime;//发送时间
    private Integer replyId;
    private Integer status;//是否已读.0,未读,1,已读
    private String  sendName;//发送人昵称
    private String  headImgUrl;//发送人头像

    //回复的内容
    private List<PrivateMessage> pmg = new ArrayList<>();
}